package com.supermarket.manage.provider.api.message;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-10 19:53
 **/
public interface CodeService {

    /**
     * 发送手机验证码
     *
     * @param phoneNumber
     * @param modelId
     * @return
     */
    Boolean sendCodeByPhoneNumber(String phoneNumber, String modelId);

    /**
     * 校验验证码
     *
     * @param phoneNumber
     * @param code
     * @return
     */
    Boolean checkPhoneCode(String phoneNumber, String code);
}
